/*
 * @Author: your name
 * @Date: 2021-11-10 10:52:52
 * @LastEditTime: 2021-12-29 01:03:10
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \cet4_6rs\src\App.js
 */
import LoginPage from './view/LoginPage'
import ManagePage from './view/ManagePage'
import UserPage from './view/UserPage'
import {
  HashRouter as Router,
  Switch,
  Route,
  Redirect
} from 'react-router-dom';
import { createBrowserHistory } from "history";
import './App.css';
function App() {
  return (
      <div className="App">
        <Router history={createBrowserHistory()}></Router>
        <Router>
        <Switch>
          <Route exact path="/" component={LoginPage}/>
          <Route path="/ManagePage" component={ManagePage} />
          <Route path="/UserPage" component={UserPage} />
          {/* <Route path="/View/myPicture" component={MyPicture} />  */} 
        </Switch>
        </Router>
    </div>
  );
}

export default App;
